package org.red_cross_service.domain.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Data;
import lombok.experimental.Accessors;
import org.red_cross_service.domain.dto.TrainingInfo;

import java.util.Date;

@Entity
@Data
@TableName("rc_sign")
@Accessors(chain =true)
public class SignEntity extends TrainingInfo {
    @Id
    @TableId(value = "sign_id", type = IdType.AUTO)
    @ExcelIgnore
    private Long signId;
    @ExcelIgnore
    private Long userId;
    @ExcelIgnore
    private Long activityId;
    @ColumnWidth(20)
    @ExcelProperty(value = "签到人姓名")
    private String signName;
    @ColumnWidth(20)
    @ExcelProperty(value = "签到人电话")
    private String signPhone;
    @ExcelIgnore
    private String signIdCard;
    @ExcelIgnore
    private Date createAt;
    @ExcelIgnore
    private String trainingInfo;
    @TableField(exist = false)
    @ExcelIgnore
    private String activityName;
    @ExcelIgnore
    @TableField(exist = false)
    private Integer enrollment;
    @TableField(exist = false)
    @ExcelIgnore
    private String activityImg;
    @ColumnWidth(20)
    @ExcelProperty(value = "工作单位")
    @TableField(exist = false)
    private String unit;



}
